package com.refactor.demo;

/**
 * NewReleaseMovie
 *
 * @author mashiquan
 * @version 1.0
 * @description
 * @date 2023/12/26 00:09
 */
public class NewReleaseMovie extends MovieStrategy {
    @Override
    String getTypeName() {
        return MovieTypeEnums.NEW_RELEASE.getTypeTitle();
    }

    @Override
    double getCharge(int rentalDays) {
        return 	rentalDays * 3;
    }

    @Override
    int getIntegralPoints(int rentalDays) {
        return rentalDays>1 ? 2 : 1;
    }
}
